//
//  WHCodeAndDecodeTool.h
//  WHPersonalData
//
//  Created by shengmeng chen on 2019/5/21.
//  Copyright © 2019 mac. All rights reserved.
//

#import <Foundation/Foundation.h>



NS_ASSUME_NONNULL_BEGIN

@interface WHCodeAndDecodeTool : NSObject

// 对称加解密
+(int)genSymmKey;

// 非对称加解密
+(int)genAsymmKey;

// 签名验签
+(int)genSign;

+(int)genPswdEncryptWithPswd:(NSString*)pswd;

//产生公私和私钥，并进行口令加密
+(int)genPrivateKeyAndPublicKey:(NSString *_Nonnull*_Nonnull)publicKey withPrivateKey:(NSString *_Nullable*_Nullable)privateKey;

//使用私钥对数据进行签名
+(int)signDataWithPrivateKey:(NSString*)privateKey withtDataString:(NSString*)dataString withPrivateKey:(NSString *_Nullable*_Nullable)sign;

//签名和验签
//+(int)testSignDataWithPrivateKey:(NSString*)privateKey withtDataString:(NSString*)dataString withPrivateKey:(NSString *)publiceKey withSign:(NSString *_Nullable*_Nullable)sign;

@end

NS_ASSUME_NONNULL_END
